package com.njmt.cloud.msprovder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njmt.cloud.msprovder.entity.OauthClientDetailsEntity;
import com.njwt.cloud.mscommon.pojo.vo.AuthorityVo;
import org.springframework.stereotype.Repository;

/**
 * @author <a href="mailto:xingxiaofeng@gtmap.cn">xingxiaofeng</a>
 * @date 2022-06-21
 * @desc OauthClientDetailsMapper
 */
@Repository
public interface OauthClientDetailsMapper extends BaseMapper<AuthorityVo> {
    /**
     * 根据clientId查询OauthClientDetails
     *
     * @param clientId clientId
     * @return OauthClientDetails
     */
    AuthorityVo getOauthClientDetailsByClientId(String clientId);

    /**
     * 根据clientId查询resourceIds
     *
     * @param clientId clientId
     * @return String
     */
    String getResourceIdsByClientId(String clientId);
}
